package com.guanyong.dao;

import com.guanyong.model.CommentGoodLogModel;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
 * Created by mxk on 2017/6/3.
 */
public interface ICommentGoodLogDaoMapper {



    @Insert("INSERT INTO t_ad_commentgoodlog (f_commentid,f_userid,f_ip,f_apptype) VALUES " +
            "(#{record.fCommentid},#{record.fUserid},#{record.fIp},#{record.fApptype})")
    int insert(@Param(value = "record") CommentGoodLogModel record);


    @Select("SELECT * FROM t_ad_commentgoodlog WHERE f_userid=#{userid} AND " +
            "f_commentid=#{commentid}  limit 1")
    @ResultMap("CommentGoodLogResultMap")
    CommentGoodLogModel GetCommentGoodlgModel(@Param("userid") String userid,
                                              @Param("commentid") Integer commentid);
}
